package sort;

import comment.Comment;
import test.MyRollBack;

/**
 *create by tbj
 */
public class RollBackSort {
	public static void sort(int[] a){
		int n=a.length;
		for(int i=0;i<n/2;i++){
			Comment.swapIntArr(a, i, n-i-1);
		}
	}
	public static void main(String[] args) {
		int[] a=Comment.getSortIntArr();
		MyRollBack.sort(a);
		for (int i : a) {
			System.out.print(i+" ");
		}
	}
}
